home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / TileSlide / Source / SoundGenerator.h < prev    next >
Text File  |  1979-02-03  |  1KB  |  49 lines

  1. #import <objc/Object.h>
  2.  
  3. #define NUMNOTES 4
  4.  
  5. @interface SoundGenerator : Object
  6. {
  7.    id orchestra, instrument, ampEnvelope, notes[NUMNOTES];
  8.    int currentNote;
  9.    int transpose;
  10.    id soundSettingsPanel;
  11.  
  12.    // Connect the following through IB to target-action objects.
  13.    id ratioOutput;
  14.    id indexOutput;
  15.    id decayOutput;
  16.    id attackOutput;
  17.    id transposeOutput;
  18.    id ratioInput;
  19.    id indexInput;
  20.    id decayInput;
  21.    id attackInput;
  22.    id transposeInput;
  23. }
  24.  
  25. - init;
  26. -(BOOL) enable;
  27. - disable;
  28. - free;
  29. - shutUp;
  30.  
  31. - changeAttackParameter:(double)newAttack;
  32. - changeDecayParameter:(double)newDecay;
  33. - changeParameter:(int)param toDouble:(double)value;
  34. - playNoteAtFreq:(double)freq;
  35.  
  36. // Connected to target-action input devices (sliders, perhaps?)
  37. - play:sender;          // Plays a note at sender's double value
  38. - changeState:sender;   // Calls enable or disable depending on sender state
  39. - changeRatio:sender;   
  40. - changeIndex:sender;
  41. - changeDecay:sender;
  42. - changeAttack:sender;
  43. - changeTranspose:sender;
  44.  
  45. - showSoundSettings:sender;
  46.  
  47. @end
  48.  
  49.